python principals Tic tac toe input - is a one liner possible

visit shbcf.ru